package com.lagou.edu.service;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by shixi  on 2021/3/5
 */
public interface CodeService {
    /**
     * 校验验证码是否正确，0正确1错误2超时
     * @param email
     * @param code
     * @return
     */
    int validate(String email, String code);
}
